const checkMultiplePhone = {
  methods:{
    multiplePhone(phone){
      if(phone == ''){
        this.Dis1 = false
        return
      }

      console.log(phone.length)
      let reg1 = /^1[3|5|7|8][0-9]{9}$/
      if(phone.length > 11 && phone.length != undefined){
        var long = phone.split(',')
        console.log(long)
        for(let a of long){
          if(!reg1.test(a)){
            // console.log(a)
            this.$message.warning({message:`${a}号码错误`,offset:400})
            this.Dis1 = true
            return
          }
        }
      }
      
      var reg = /^(1([3578]\d|4[57]|5[0-35-9]|7[06-8])\d{8})(,(1([3578]\d|4[57]|5[0-35-9]|7[06-8])\d{8}))*$/;
      if(!reg.test(phone)){
        this.$message.warning({message:'请填写11位数正确手机号',offset:400})
        this.Dis1 = true
        return
      }else{
        this.Dis1 = false
      }
    }
  }
}
export default checkMultiplePhone